import 'babel-polyfill'
import Vue from 'vue'
import App from './App.vue'
import router from '@/router'
import { 
    Table,
    TableColumn, 
    Pagination, 
    Button,
    Form,
    FormItem,
    Input,
    Select,
    MessageBox,
    Message,
    Notification,
} from 'element-ui';

import '@/stylus/style.styl'
import store from '@/store'

Vue.use(Table)
Vue.use(TableColumn)
Vue.use(Pagination)
Vue.use(Button)
Vue.use(Form)
Vue.use(FormItem)
Vue.use(Input)
Vue.use(Select)


Vue.prototype.$msgbox = MessageBox;
Vue.prototype.$notify = Notification;
Vue.prototype.$message = Message;

Vue.config.productionTip = false


Vue.config.productionTip = 

Vue.filter('numcomma',(value)=>{
    try {
        let n = (value*1).toLocaleString()
        return n?n:value
    }catch(e){
        return value
    }
})


window.VM = new Vue({
    router,
    store,
    render: h => h(App),
}).$mount('#app')
